package com.code.modules.base.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.code.modules.base.model.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author MyBatisPlus
 * @since 2021-10-19
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> getRoleByuserid(@Param("userid") Integer userid);

    List<Role> checkRolecode(@Param("code") String code);

    List<Role> selectPageList(@Param("condition") String condition);



}
